﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Web.Profile;

namespace WebSite.cn
{
    public partial class forget : System.Web.UI.Page
    {
        // Fields

        protected void Page_Load(object sender, EventArgs e)
        {
        }

        protected void btnContinue_Click(object sender, EventArgs e)
        {
            DataTable table = SQLAccess.GreatDs("SELECT memberid FROM DB_Member where memberlogin='" + re.replace(base.Request.Form["usernamea"]) + "' and isnull(flag,0)!=2 ").Tables[0];
            if (table.Rows.Count > 0)
            {
                WebSite.login.getpass("", table.Rows[0]["memberid"].ToString(), "1", fun.GetGuidRandom(4));
            }
            else
            {
                base.Response.Write("<script language='javascript'>alert('对不起，该用户名不存在,建议创建一个新账户！');window.history.go(-1);</script>");
                base.Response.End();
            }
        }

   

    }
}